#!/bin/bash

UPDATE_DIR="/home/zzl/CVE/cve-web"

set -e 
set -x 

cp ./output/CVE.json ${UPDATE_DIR}/dist/
cd ${UPDATE_DIR}
if ! git diff --exit-code > /dev/null
then 
    git add . 
	git commit -am "auto update"
	git push
fi
